﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IOP.OpenType
{
    /// <summary>
    /// 
    /// </summary>
    public struct Card16
    {
        private ushort Origin;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        public Card16(ushort data)
        {
            Origin = data;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override string ToString() => Origin.ToString();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="card"></param>
        public static implicit operator ushort(Card16 card) => card.Origin;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="b"></param>
        public static implicit operator Card16(ushort b) => new Card16(b);
    }
}
